package com.foreknow.demo7;

public interface EmployeeDAO {
    /**
     * 添加员工
     * @param employee
     */
    public void Add(Employee employee);

    /**
     * 查询所有员工
     */
    public Employee[] SelectAll();

    /**
     * 修改某一员工
     * @param employee
     * @return
     */
    public void Update(Employee employee);

    /**
     * 根据id查询某一员工
     * @param id
     * @return
     */
    public Employee SelectById(int id);
}
